package coffeerush.organizer.mail;

import java.io.Serializable;
import java.util.ArrayList;
/**
 * Класс, реализующий структуру сообщения для удобства работы. Объекты данного 
 * класса могут быть "сериализованы".
 * @author Ryzhko Oleg
 */
public class MessageBean implements Serializable {
    
    private String subject;
    private String from;
    private String to;
    private String dateSent;
    private String content;
    private boolean isNew;
    private int msgID;
    private ArrayList<String> attachments;

    public MessageBean(String subject, String from, String to, String dateSent, 
                       String content, boolean isNew, int msgID, ArrayList<String> attachments) {
        
        this.subject = subject;
        this.from = from;
        this.to = to;
        this.dateSent = dateSent;
        this.content = content;
        this.isNew = isNew;
        this.msgID = msgID;
        this.attachments = attachments;
    }
    
    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getDateSent() {
        return dateSent;
    }

    public void setDateSent(String dateSent) {
        this.dateSent = dateSent;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isIsNew() {
        return isNew;
    }

    public void setIsNew(boolean isNew) {
        this.isNew = isNew;
    }

    public int getMessageID() {
        return msgID;
    }

    public void setMessageID(int msgID) {
        this.msgID = msgID;
    }

    public ArrayList<String> getAttachments() {
        return attachments;
    }

    public void setAttachments(ArrayList<String> attachments) {
        this.attachments = attachments;
    }
    
}